<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>将数字转化成百分⽐格式</title>
</head>
<body>
    <script>
        var a =prompt('请输入数字')
		var b = Number(a/100)
		b =b+'%'
			alert(b)
    </script>
</body>
</html>